package com.ruoyi.leave.util;

public class WorkFlowConstants {
    public static final String WORK_FLOW_WATER_BUSINESS_KEY = "waterPlan";
    public static final String WORK_FLOW_WATER2_BUSINESS_KEY = "waterPlan2";
    public static final String WORK_FLOW_WATER_MONTH_BUSINESS_KEY = "waterMonthPlan";
    public static final String WORK_FLOW_WATER2_MONTH_BUSINESS_KEY = "waterMonthPlan2";
    public static final String WORK_FLOW_WATER_ADJUST_BUSINESS_KEY = "waterPlanAdjust";
    public static final String WORK_FLOW_WATER2_ADJUST_BUSINESS_KEY = "waterPlanAdjust2";

    public enum WATER_PLAN_CHANNEL {
        ER_SAN_CHAN("1", "二三产计划用水申请流程", "year", WORK_FLOW_WATER_BUSINESS_KEY),
        NONG_YE("2", "农业计划用水申请流程", "year", WORK_FLOW_WATER2_BUSINESS_KEY),
        ER_SAN_CHAN_MONTH("1", "二三产计划月度用水申请流程", "month", WORK_FLOW_WATER_MONTH_BUSINESS_KEY),
        NONG_YE_MONTH("2", "农业计划月度用水申请流程", "month", WORK_FLOW_WATER2_MONTH_BUSINESS_KEY),
        ER_SAN_CHAN_ADJUST("1", "二三产计划用水调整流程", "adjust", WORK_FLOW_WATER_ADJUST_BUSINESS_KEY),
        NONG_YE_ADJUST("2", "农业计划用水调整流程", "adjust", WORK_FLOW_WATER2_ADJUST_BUSINESS_KEY),
        ;
        private String value;
        private String label;

        private String type;
        private String name;

        public String getValue() {
            return value;
        }

        public String getLabel() {
            return label;
        }

        public String getType() {
            return type;
        }

        public String getName() {
            return name;
        }

        private WATER_PLAN_CHANNEL(String value, String label, String type, String name) {
            this.value = value;
            this.label = label;
            this.type = type;
            this.name = name;
        }

        public static WATER_PLAN_CHANNEL getEnum(String value, String type) {
            for (WATER_PLAN_CHANNEL enumItem : WATER_PLAN_CHANNEL.values()) {
                if (enumItem.getValue().equals(value) && enumItem.getType().equals(type)) {
                    return enumItem;
                }
            }
            return null;
        }
    }

    public enum WATER_PLAN_STATUS_ENUM {
        INIT("0"),
        WAIT_CHECK("1"),
        REJECT("2"),
        FINISH("9"),
        ;
        private String value;

        public String getValue() {
            return value;
        }

        private WATER_PLAN_STATUS_ENUM(String value) {
            this.value = value;
        }
    }

}
